//
// Created on 2025/4/14.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef SAMPLE_COMMON_H
#define SAMPLE_COMMON_H

#include "stdint.h"
#include <js_native_api_types.h>
#include <multimedia/player_framework/native_avformat.h>
#include <string>
#include "hilog/log.h"

struct  SampleInfo {
    std::string inputPath = "/data/test.yuv";
    std::string outputPath = "/data/output.h264";
    int32_t videoWidth = 1920;
    int32_t videoHeight = 1080;
    double frameRate = 30;
    OH_AVPixelFormat pixelFormat = AV_PIXEL_FORMAT_NV12;
    napi_ref callbackRef = nullptr;
};

#undef LOG_DOMAIN
#undef LOG_TAG
#define LOG_DOMAIN 0x0030  // 全局domain宏，标识业务领域
#define LOG_TAG "MY_TAG"   // 全局tag宏，标识模块日志tag



#endif //SAMPLE_COMMON_H
